Welcome Guest, you are in: Login
CTS Futures
Home
Pricing
Market Data
FAQ
Videos

T4 Desktop
User Guide
Scripting Guide
Release Notes

Mobile and Web
T4 Mobile for Android
T4 Mobile for iOS
T4 Mobile for Browser
T4 WebTrader

Admins
T4 Admin Guide
MiFID II/MiFIR

Developers
API 4.7 Guide
FIX API


Page History: SUM Function

Compare Page Revisions



« Older Revision - Back to Page History - Newer Revision »


Page Revision: 2011/07/22 07:22


SUM( <value>, <periods>)

Computes the sum of the values over the specified number of periods.

Function Parameters
ParameterDescription
<value>The value field to compute (e.g. CLOSE, HIGH, (H+L+C)/3, etc.)
<periods>The number of periods to look back.

Example:

SUM(VOLUME, 5)

Example Data
DateOpenHighLowCloseVolumeSUM(VOLUME, 5)
06/01/201175100760507410075875106528
06/02/20117575077000754507665081891
06/03/20117655076900751007520080819
06/06/20117540075800731507317582726
06/07/20117320073775729257367572927424891
06/08/201173875766507345076275113339431702
06/09/201176400793007595078425120824470635
06/10/20117850079975777257857586989476805
06/13/20117860079250777257817578661472740
06/14/201177925779507525075450112682512495
06/15/201176025762257255072575130420529576
06/16/201172575728506987570025125316534068
06/17/20117005071450691257020093140540219
06/20/20117045070775695507015063702525260
06/21/20117030071925702257082571108483686
06/22/201168125685006502565025127015480281
06/23/201165000653006200064675138220493185
06/24/20116522565675628006287578876478921



Back to the Scripting Function Reference

Trade how you want, where you want

support@ctsfutures.com (312) 939 0164

2 Pierce Pl, Suite 200, Itasca, IL 60143

© 2009-2023 Cunningham Trading Systems LLC All rights reserved.